#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

#include "cameramanager.h"

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

public slots:
    void onErrorOccurred(const QString &msg);

    void onUpdateUi();  //更新ui显示

private:
    Ui::Widget *ui;

    QVector<CameraManager*> m_managers;                     //管理类数组

};
#endif // WIDGET_H
